#pragma once
#include <list>
#include "Lock.h"
#include "LobbyClientPlayer.h"

using namespace std;

class CClientPlayerList
{
	enum
	{
        PlayerList_Group_Count = 8192,
	};
public:
	CClientPlayerList(void);
	~CClientPlayerList(void);

	void AddClientPlayer(CLobbyClientPlayer *pClientPlayer);
	void DelClientPlayer(CLobbyClientPlayer *pClientPlayer);
	CLobbyClientPlayer* FindClientPlayer(DWORD dwUserId);

	void SendSynProductListMsg(LCProductListMsg &msg);

	CObjPtrList<CLobbyClientPlayer> m_arrPlayerList[PlayerList_Group_Count];
	CLock m_lock;
};
